<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主缴费汇总</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
 <center>
 <table align="center" width="900px" border="0">
	<tr>
     <td colspan="16" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">业主缴费汇总表(${year }年${month }月)
     &nbsp;&nbsp;&nbsp;&nbsp; 
     </td>
     </tr>
     <tr><td>
	<table class="tableline" id="Table1" cellspacing="1" cellpadding="0"  width="900px" border="0">
	    <tr align="center">
	      <td  height="40" bgcolor="#ffffff">业主</td>
	      <td  bgcolor="#ffffff">应缴金额</td>
	      <td  bgcolor="#ffffff">实收金额</td>
	    </tr>
	    <c:if test="${empty pm.datas}"> 查询的数据为空的。 </c:if>
	<c:if test="${!empty pm.datas}">   
		<c:forEach items="${pm.datas }" var="queryMap">
	        <tr align="center">
	  <td  align="center" bgcolor="#ffffff" align="center">
			${queryMap.ownerName}
			</td>
			
			<td  align="right" bgcolor="#ffffff" align="center">
			<fmt:formatNumber value="${queryMap.paidSum }" pattern="0.00" />&nbsp;
			</td>
			<td  align="right" bgcolor="#ffffff" align="center">
			<fmt:formatNumber value="${queryMap.propCharge }" pattern="0.00" />&nbsp;
			</td>
			
			
								
	        </tr>
	      </c:forEach>
	 </c:if>
	    <tr>
		<td bgcolor="#ffffff" colspan="16">
			<center>
				<pg:pager url="propQuery.do" items="${pm.total }" export="currentPageNumber=pageNumber">
					<pg:first>
						<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=1">首页</a>
	
					</pg:first>
					<pg:prev>
						<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=1">上一页</a>
					</pg:prev>
					<pg:pages>
						<c:choose>
							<c:when test="${currentPageNumber eq pageNumber}">
								<font color="red">${pageNumber }</font>
							</c:when>
							<c:otherwise>
								<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=1">${pageNumber }</a>
							</c:otherwise>
						</c:choose>
					</pg:pages>
					<pg:next>
						<a href="${pageUrl }&subId=${subId}&distId=${distId}&year=${year }&month=${month }&pageType=1">下一页</a>
					</pg:next>
					<pg:last>
						<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=1">尾页</a>
					</pg:last>
				</pg:pager>
			</center>
			</td>
		</tr>
	  </table>
	 </td></tr>
	  <tr>
		<td bgcolor="#ffffff" colspan="16" align="right"><input
					type="button" value="导出Excel报表" style="color: green;"
					onclick="window.location.href='propQuery.do?method=doQueryOwnerChargeToExcel&year=${year }&month=${month }&subId=${subId}&distId=${distId}&pageType=1'"></td>
		</tr>
</table>  
</center>
</body>
</html>